//
//  JobDetailHelper.swift
//  GreenDeal
//
//  Created by Moennig Q on 30/12/2022.
//

import UIKit
import RxRelay
import RxSwift
class JobDetailModelHelper {
    
    //MARK: - 单例
    static let shared = JobDetailModelHelper()
    
    var jobDetailModel = PVDDetailModel()
    //正在操作的checklist id，主要用于image 类型的
    var checklistModel = PVDChecklistModel()
    //MARK:
    var job_status: PublishSubject<String> = PublishSubject()
    var installer_job_site_instruction: PublishSubject<String> = PublishSubject()
    var gwt_id: PublishSubject<String> = PublishSubject()
    var pick_up_required: PublishSubject<Bool> = PublishSubject()
    var pick_up_reference: PublishSubject<String> = PublishSubject()
    var spv_check: PublishSubject<Bool> = PublishSubject()
    var owner_address: PublishSubject<InstallationDetailOwnerAddress> = PublishSubject()
    var system_detail: PublishSubject<InstallationDetailSystemDetail> = PublishSubject()
    var install_address: PublishSubject<InstallationDetailInstallAddress> = PublishSubject()
    var pvd_serial_numbers: PublishSubject<[PanelNumberImageDBModel]> = PublishSubject()
    var pvd_inverter_serial_numbers: PublishSubject<[PanelNumberImageDBModel]> = PublishSubject()
    var signatures: PublishSubject<InstallationDetailSignatures> = PublishSubject()
    //var
    var pvd_checklists: PublishSubject<[PVDChecklistModel]> = PublishSubject()
    
}
